package com.fujitsu.nanjing.tieba.ibator;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CoreBoardCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer mysqlOffset;

    private Integer mysqlLength;

    public CoreBoardCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    protected CoreBoardCriteria(CoreBoardCriteria example) {
        this.orderByClause = example.orderByClause;
        this.oredCriteria = example.oredCriteria;
        this.distinct = example.distinct;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setMysqlOffset(Integer mysqlOffset) {
        this.mysqlOffset = mysqlOffset;
    }

    public Integer getMysqlOffset() {
        return mysqlOffset;
    }

    public void setMysqlLength(Integer mysqlLength) {
        this.mysqlLength = mysqlLength;
    }

    public Integer getMysqlLength() {
        return mysqlLength;
    }

    protected abstract static class GeneratedCriteria {
        protected List<String> criteriaWithoutValue;

        protected List<Map<String, Object>> criteriaWithSingleValue;

        protected List<Map<String, Object>> criteriaWithListValue;

        protected List<Map<String, Object>> criteriaWithBetweenValue;

        protected GeneratedCriteria() {
            super();
            criteriaWithoutValue = new ArrayList<String>();
            criteriaWithSingleValue = new ArrayList<Map<String, Object>>();
            criteriaWithListValue = new ArrayList<Map<String, Object>>();
            criteriaWithBetweenValue = new ArrayList<Map<String, Object>>();
        }

        public boolean isValid() {
            return criteriaWithoutValue.size() > 0
                || criteriaWithSingleValue.size() > 0
                || criteriaWithListValue.size() > 0
                || criteriaWithBetweenValue.size() > 0;
        }

        public List<String> getCriteriaWithoutValue() {
            return criteriaWithoutValue;
        }

        public void setCriteriaWithoutValue(List<String> criteriaWithoutValue) {
            this.criteriaWithoutValue = criteriaWithoutValue;
        }

        public List<Map<String, Object>> getCriteriaWithSingleValue() {
            return criteriaWithSingleValue;
        }

        public void setCriteriaWithSingleValue(List<Map<String, Object>> criteriaWithSingleValue) {
            this.criteriaWithSingleValue = criteriaWithSingleValue;
        }

        public List<Map<String, Object>> getCriteriaWithListValue() {
            return criteriaWithListValue;
        }

        public void setCriteriaWithListValue(List<Map<String, Object>> criteriaWithListValue) {
            this.criteriaWithListValue = criteriaWithListValue;
        }

        public List<Map<String, Object>> getCriteriaWithBetweenValue() {
            return criteriaWithBetweenValue;
        }

        public void setCriteriaWithBetweenValue(List<Map<String, Object>> criteriaWithBetweenValue) {
            this.criteriaWithBetweenValue = criteriaWithBetweenValue;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteriaWithoutValue.add(condition);
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            Map<String, Object> map = new HashMap<String, Object>();
            map.put("condition", condition);
            map.put("value", value);
            criteriaWithSingleValue.add(map);
        }

        protected void addCriterion(String condition, List<? extends Object> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            Map<String, Object> map = new HashMap<String, Object>();
            map.put("condition", condition);
            map.put("values", values);
            criteriaWithListValue.add(map);
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            List<Object> list = new ArrayList<Object>();
            list.add(value1);
            list.add(value2);
            Map<String, Object> map = new HashMap<String, Object>();
            map.put("condition", condition);
            map.put("values", list);
            criteriaWithBetweenValue.add(map);
        }

        public Criteria andBoardidIsNull() {
            addCriterion("boardID is null");
            return (Criteria) this;
        }

        public Criteria andBoardidIsNotNull() {
            addCriterion("boardID is not null");
            return (Criteria) this;
        }

        public Criteria andBoardidEqualTo(Integer value) {
            addCriterion("boardID =", value, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidNotEqualTo(Integer value) {
            addCriterion("boardID <>", value, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidGreaterThan(Integer value) {
            addCriterion("boardID >", value, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidGreaterThanOrEqualTo(Integer value) {
            addCriterion("boardID >=", value, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidLessThan(Integer value) {
            addCriterion("boardID <", value, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidLessThanOrEqualTo(Integer value) {
            addCriterion("boardID <=", value, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidIn(List<Integer> values) {
            addCriterion("boardID in", values, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidNotIn(List<Integer> values) {
            addCriterion("boardID not in", values, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidBetween(Integer value1, Integer value2) {
            addCriterion("boardID between", value1, value2, "boardid");
            return (Criteria) this;
        }

        public Criteria andBoardidNotBetween(Integer value1, Integer value2) {
            addCriterion("boardID not between", value1, value2, "boardid");
            return (Criteria) this;
        }

        public Criteria andSectionidIsNull() {
            addCriterion("sectionID is null");
            return (Criteria) this;
        }

        public Criteria andSectionidIsNotNull() {
            addCriterion("sectionID is not null");
            return (Criteria) this;
        }

        public Criteria andSectionidEqualTo(Integer value) {
            addCriterion("sectionID =", value, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidNotEqualTo(Integer value) {
            addCriterion("sectionID <>", value, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidGreaterThan(Integer value) {
            addCriterion("sectionID >", value, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidGreaterThanOrEqualTo(Integer value) {
            addCriterion("sectionID >=", value, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidLessThan(Integer value) {
            addCriterion("sectionID <", value, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidLessThanOrEqualTo(Integer value) {
            addCriterion("sectionID <=", value, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidIn(List<Integer> values) {
            addCriterion("sectionID in", values, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidNotIn(List<Integer> values) {
            addCriterion("sectionID not in", values, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidBetween(Integer value1, Integer value2) {
            addCriterion("sectionID between", value1, value2, "sectionid");
            return (Criteria) this;
        }

        public Criteria andSectionidNotBetween(Integer value1, Integer value2) {
            addCriterion("sectionID not between", value1, value2, "sectionid");
            return (Criteria) this;
        }

        public Criteria andBoardnameIsNull() {
            addCriterion("boardName is null");
            return (Criteria) this;
        }

        public Criteria andBoardnameIsNotNull() {
            addCriterion("boardName is not null");
            return (Criteria) this;
        }

        public Criteria andBoardnameEqualTo(String value) {
            addCriterion("boardName =", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameNotEqualTo(String value) {
            addCriterion("boardName <>", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameGreaterThan(String value) {
            addCriterion("boardName >", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameGreaterThanOrEqualTo(String value) {
            addCriterion("boardName >=", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameLessThan(String value) {
            addCriterion("boardName <", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameLessThanOrEqualTo(String value) {
            addCriterion("boardName <=", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameLike(String value) {
            addCriterion("boardName like", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameNotLike(String value) {
            addCriterion("boardName not like", value, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameIn(List<String> values) {
            addCriterion("boardName in", values, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameNotIn(List<String> values) {
            addCriterion("boardName not in", values, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameBetween(String value1, String value2) {
            addCriterion("boardName between", value1, value2, "boardname");
            return (Criteria) this;
        }

        public Criteria andBoardnameNotBetween(String value1, String value2) {
            addCriterion("boardName not between", value1, value2, "boardname");
            return (Criteria) this;
        }

        public Criteria andHighcolorIsNull() {
            addCriterion("highColor is null");
            return (Criteria) this;
        }

        public Criteria andHighcolorIsNotNull() {
            addCriterion("highColor is not null");
            return (Criteria) this;
        }

        public Criteria andHighcolorEqualTo(String value) {
            addCriterion("highColor =", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorNotEqualTo(String value) {
            addCriterion("highColor <>", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorGreaterThan(String value) {
            addCriterion("highColor >", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorGreaterThanOrEqualTo(String value) {
            addCriterion("highColor >=", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorLessThan(String value) {
            addCriterion("highColor <", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorLessThanOrEqualTo(String value) {
            addCriterion("highColor <=", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorLike(String value) {
            addCriterion("highColor like", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorNotLike(String value) {
            addCriterion("highColor not like", value, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorIn(List<String> values) {
            addCriterion("highColor in", values, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorNotIn(List<String> values) {
            addCriterion("highColor not in", values, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorBetween(String value1, String value2) {
            addCriterion("highColor between", value1, value2, "highcolor");
            return (Criteria) this;
        }

        public Criteria andHighcolorNotBetween(String value1, String value2) {
            addCriterion("highColor not between", value1, value2, "highcolor");
            return (Criteria) this;
        }

        public Criteria andSeqnoIsNull() {
            addCriterion("seqno is null");
            return (Criteria) this;
        }

        public Criteria andSeqnoIsNotNull() {
            addCriterion("seqno is not null");
            return (Criteria) this;
        }

        public Criteria andSeqnoEqualTo(Integer value) {
            addCriterion("seqno =", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoNotEqualTo(Integer value) {
            addCriterion("seqno <>", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoGreaterThan(Integer value) {
            addCriterion("seqno >", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("seqno >=", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoLessThan(Integer value) {
            addCriterion("seqno <", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoLessThanOrEqualTo(Integer value) {
            addCriterion("seqno <=", value, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoIn(List<Integer> values) {
            addCriterion("seqno in", values, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoNotIn(List<Integer> values) {
            addCriterion("seqno not in", values, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoBetween(Integer value1, Integer value2) {
            addCriterion("seqno between", value1, value2, "seqno");
            return (Criteria) this;
        }

        public Criteria andSeqnoNotBetween(Integer value1, Integer value2) {
            addCriterion("seqno not between", value1, value2, "seqno");
            return (Criteria) this;
        }

        public Criteria andBriefIsNull() {
            addCriterion("brief is null");
            return (Criteria) this;
        }

        public Criteria andBriefIsNotNull() {
            addCriterion("brief is not null");
            return (Criteria) this;
        }

        public Criteria andBriefEqualTo(String value) {
            addCriterion("brief =", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotEqualTo(String value) {
            addCriterion("brief <>", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefGreaterThan(String value) {
            addCriterion("brief >", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefGreaterThanOrEqualTo(String value) {
            addCriterion("brief >=", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefLessThan(String value) {
            addCriterion("brief <", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefLessThanOrEqualTo(String value) {
            addCriterion("brief <=", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefLike(String value) {
            addCriterion("brief like", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotLike(String value) {
            addCriterion("brief not like", value, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefIn(List<String> values) {
            addCriterion("brief in", values, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotIn(List<String> values) {
            addCriterion("brief not in", values, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefBetween(String value1, String value2) {
            addCriterion("brief between", value1, value2, "brief");
            return (Criteria) this;
        }

        public Criteria andBriefNotBetween(String value1, String value2) {
            addCriterion("brief not between", value1, value2, "brief");
            return (Criteria) this;
        }

        public Criteria andKeywordsIsNull() {
            addCriterion("keywords is null");
            return (Criteria) this;
        }

        public Criteria andKeywordsIsNotNull() {
            addCriterion("keywords is not null");
            return (Criteria) this;
        }

        public Criteria andKeywordsEqualTo(String value) {
            addCriterion("keywords =", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsNotEqualTo(String value) {
            addCriterion("keywords <>", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsGreaterThan(String value) {
            addCriterion("keywords >", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsGreaterThanOrEqualTo(String value) {
            addCriterion("keywords >=", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsLessThan(String value) {
            addCriterion("keywords <", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsLessThanOrEqualTo(String value) {
            addCriterion("keywords <=", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsLike(String value) {
            addCriterion("keywords like", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsNotLike(String value) {
            addCriterion("keywords not like", value, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsIn(List<String> values) {
            addCriterion("keywords in", values, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsNotIn(List<String> values) {
            addCriterion("keywords not in", values, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsBetween(String value1, String value2) {
            addCriterion("keywords between", value1, value2, "keywords");
            return (Criteria) this;
        }

        public Criteria andKeywordsNotBetween(String value1, String value2) {
            addCriterion("keywords not between", value1, value2, "keywords");
            return (Criteria) this;
        }

        public Criteria andModeratorIsNull() {
            addCriterion("moderator is null");
            return (Criteria) this;
        }

        public Criteria andModeratorIsNotNull() {
            addCriterion("moderator is not null");
            return (Criteria) this;
        }

        public Criteria andModeratorEqualTo(String value) {
            addCriterion("moderator =", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorNotEqualTo(String value) {
            addCriterion("moderator <>", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorGreaterThan(String value) {
            addCriterion("moderator >", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorGreaterThanOrEqualTo(String value) {
            addCriterion("moderator >=", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorLessThan(String value) {
            addCriterion("moderator <", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorLessThanOrEqualTo(String value) {
            addCriterion("moderator <=", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorLike(String value) {
            addCriterion("moderator like", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorNotLike(String value) {
            addCriterion("moderator not like", value, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorIn(List<String> values) {
            addCriterion("moderator in", values, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorNotIn(List<String> values) {
            addCriterion("moderator not in", values, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorBetween(String value1, String value2) {
            addCriterion("moderator between", value1, value2, "moderator");
            return (Criteria) this;
        }

        public Criteria andModeratorNotBetween(String value1, String value2) {
            addCriterion("moderator not between", value1, value2, "moderator");
            return (Criteria) this;
        }

        public Criteria andViewstyleIsNull() {
            addCriterion("viewStyle is null");
            return (Criteria) this;
        }

        public Criteria andViewstyleIsNotNull() {
            addCriterion("viewStyle is not null");
            return (Criteria) this;
        }

        public Criteria andViewstyleEqualTo(String value) {
            addCriterion("viewStyle =", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleNotEqualTo(String value) {
            addCriterion("viewStyle <>", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleGreaterThan(String value) {
            addCriterion("viewStyle >", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleGreaterThanOrEqualTo(String value) {
            addCriterion("viewStyle >=", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleLessThan(String value) {
            addCriterion("viewStyle <", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleLessThanOrEqualTo(String value) {
            addCriterion("viewStyle <=", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleLike(String value) {
            addCriterion("viewStyle like", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleNotLike(String value) {
            addCriterion("viewStyle not like", value, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleIn(List<String> values) {
            addCriterion("viewStyle in", values, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleNotIn(List<String> values) {
            addCriterion("viewStyle not in", values, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleBetween(String value1, String value2) {
            addCriterion("viewStyle between", value1, value2, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andViewstyleNotBetween(String value1, String value2) {
            addCriterion("viewStyle not between", value1, value2, "viewstyle");
            return (Criteria) this;
        }

        public Criteria andSortfieldIsNull() {
            addCriterion("sortField is null");
            return (Criteria) this;
        }

        public Criteria andSortfieldIsNotNull() {
            addCriterion("sortField is not null");
            return (Criteria) this;
        }

        public Criteria andSortfieldEqualTo(String value) {
            addCriterion("sortField =", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldNotEqualTo(String value) {
            addCriterion("sortField <>", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldGreaterThan(String value) {
            addCriterion("sortField >", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldGreaterThanOrEqualTo(String value) {
            addCriterion("sortField >=", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldLessThan(String value) {
            addCriterion("sortField <", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldLessThanOrEqualTo(String value) {
            addCriterion("sortField <=", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldLike(String value) {
            addCriterion("sortField like", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldNotLike(String value) {
            addCriterion("sortField not like", value, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldIn(List<String> values) {
            addCriterion("sortField in", values, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldNotIn(List<String> values) {
            addCriterion("sortField not in", values, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldBetween(String value1, String value2) {
            addCriterion("sortField between", value1, value2, "sortfield");
            return (Criteria) this;
        }

        public Criteria andSortfieldNotBetween(String value1, String value2) {
            addCriterion("sortField not between", value1, value2, "sortfield");
            return (Criteria) this;
        }

        public Criteria andIsimageokIsNull() {
            addCriterion("isImageOK is null");
            return (Criteria) this;
        }

        public Criteria andIsimageokIsNotNull() {
            addCriterion("isImageOK is not null");
            return (Criteria) this;
        }

        public Criteria andIsimageokEqualTo(String value) {
            addCriterion("isImageOK =", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokNotEqualTo(String value) {
            addCriterion("isImageOK <>", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokGreaterThan(String value) {
            addCriterion("isImageOK >", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokGreaterThanOrEqualTo(String value) {
            addCriterion("isImageOK >=", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokLessThan(String value) {
            addCriterion("isImageOK <", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokLessThanOrEqualTo(String value) {
            addCriterion("isImageOK <=", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokLike(String value) {
            addCriterion("isImageOK like", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokNotLike(String value) {
            addCriterion("isImageOK not like", value, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokIn(List<String> values) {
            addCriterion("isImageOK in", values, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokNotIn(List<String> values) {
            addCriterion("isImageOK not in", values, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokBetween(String value1, String value2) {
            addCriterion("isImageOK between", value1, value2, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsimageokNotBetween(String value1, String value2) {
            addCriterion("isImageOK not between", value1, value2, "isimageok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokIsNull() {
            addCriterion("isMediaOK is null");
            return (Criteria) this;
        }

        public Criteria andIsmediaokIsNotNull() {
            addCriterion("isMediaOK is not null");
            return (Criteria) this;
        }

        public Criteria andIsmediaokEqualTo(String value) {
            addCriterion("isMediaOK =", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokNotEqualTo(String value) {
            addCriterion("isMediaOK <>", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokGreaterThan(String value) {
            addCriterion("isMediaOK >", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokGreaterThanOrEqualTo(String value) {
            addCriterion("isMediaOK >=", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokLessThan(String value) {
            addCriterion("isMediaOK <", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokLessThanOrEqualTo(String value) {
            addCriterion("isMediaOK <=", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokLike(String value) {
            addCriterion("isMediaOK like", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokNotLike(String value) {
            addCriterion("isMediaOK not like", value, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokIn(List<String> values) {
            addCriterion("isMediaOK in", values, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokNotIn(List<String> values) {
            addCriterion("isMediaOK not in", values, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokBetween(String value1, String value2) {
            addCriterion("isMediaOK between", value1, value2, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsmediaokNotBetween(String value1, String value2) {
            addCriterion("isMediaOK not between", value1, value2, "ismediaok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokIsNull() {
            addCriterion("isGuestPostOK is null");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokIsNotNull() {
            addCriterion("isGuestPostOK is not null");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokEqualTo(String value) {
            addCriterion("isGuestPostOK =", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokNotEqualTo(String value) {
            addCriterion("isGuestPostOK <>", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokGreaterThan(String value) {
            addCriterion("isGuestPostOK >", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokGreaterThanOrEqualTo(String value) {
            addCriterion("isGuestPostOK >=", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokLessThan(String value) {
            addCriterion("isGuestPostOK <", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokLessThanOrEqualTo(String value) {
            addCriterion("isGuestPostOK <=", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokLike(String value) {
            addCriterion("isGuestPostOK like", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokNotLike(String value) {
            addCriterion("isGuestPostOK not like", value, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokIn(List<String> values) {
            addCriterion("isGuestPostOK in", values, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokNotIn(List<String> values) {
            addCriterion("isGuestPostOK not in", values, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokBetween(String value1, String value2) {
            addCriterion("isGuestPostOK between", value1, value2, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andIsguestpostokNotBetween(String value1, String value2) {
            addCriterion("isGuestPostOK not between", value1, value2, "isguestpostok");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsIsNull() {
            addCriterion("allowGroups is null");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsIsNotNull() {
            addCriterion("allowGroups is not null");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsEqualTo(String value) {
            addCriterion("allowGroups =", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsNotEqualTo(String value) {
            addCriterion("allowGroups <>", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsGreaterThan(String value) {
            addCriterion("allowGroups >", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsGreaterThanOrEqualTo(String value) {
            addCriterion("allowGroups >=", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsLessThan(String value) {
            addCriterion("allowGroups <", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsLessThanOrEqualTo(String value) {
            addCriterion("allowGroups <=", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsLike(String value) {
            addCriterion("allowGroups like", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsNotLike(String value) {
            addCriterion("allowGroups not like", value, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsIn(List<String> values) {
            addCriterion("allowGroups in", values, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsNotIn(List<String> values) {
            addCriterion("allowGroups not in", values, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsBetween(String value1, String value2) {
            addCriterion("allowGroups between", value1, value2, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAllowgroupsNotBetween(String value1, String value2) {
            addCriterion("allowGroups not between", value1, value2, "allowgroups");
            return (Criteria) this;
        }

        public Criteria andAclIsNull() {
            addCriterion("acl is null");
            return (Criteria) this;
        }

        public Criteria andAclIsNotNull() {
            addCriterion("acl is not null");
            return (Criteria) this;
        }

        public Criteria andAclEqualTo(String value) {
            addCriterion("acl =", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclNotEqualTo(String value) {
            addCriterion("acl <>", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclGreaterThan(String value) {
            addCriterion("acl >", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclGreaterThanOrEqualTo(String value) {
            addCriterion("acl >=", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclLessThan(String value) {
            addCriterion("acl <", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclLessThanOrEqualTo(String value) {
            addCriterion("acl <=", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclLike(String value) {
            addCriterion("acl like", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclNotLike(String value) {
            addCriterion("acl not like", value, "acl");
            return (Criteria) this;
        }

        public Criteria andAclIn(List<String> values) {
            addCriterion("acl in", values, "acl");
            return (Criteria) this;
        }

        public Criteria andAclNotIn(List<String> values) {
            addCriterion("acl not in", values, "acl");
            return (Criteria) this;
        }

        public Criteria andAclBetween(String value1, String value2) {
            addCriterion("acl between", value1, value2, "acl");
            return (Criteria) this;
        }

        public Criteria andAclNotBetween(String value1, String value2) {
            addCriterion("acl not between", value1, value2, "acl");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("state like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("state not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andBoardnameLikeInsensitive(String value) {
            addCriterion("upper(boardName) like", value.toUpperCase(), "boardname");
            return this;
        }

        public Criteria andHighcolorLikeInsensitive(String value) {
            addCriterion("upper(highColor) like", value.toUpperCase(), "highcolor");
            return this;
        }

        public Criteria andBriefLikeInsensitive(String value) {
            addCriterion("upper(brief) like", value.toUpperCase(), "brief");
            return this;
        }

        public Criteria andKeywordsLikeInsensitive(String value) {
            addCriterion("upper(keywords) like", value.toUpperCase(), "keywords");
            return this;
        }

        public Criteria andModeratorLikeInsensitive(String value) {
            addCriterion("upper(moderator) like", value.toUpperCase(), "moderator");
            return this;
        }

        public Criteria andViewstyleLikeInsensitive(String value) {
            addCriterion("upper(viewStyle) like", value.toUpperCase(), "viewstyle");
            return this;
        }

        public Criteria andSortfieldLikeInsensitive(String value) {
            addCriterion("upper(sortField) like", value.toUpperCase(), "sortfield");
            return this;
        }

        public Criteria andIsimageokLikeInsensitive(String value) {
            addCriterion("upper(isImageOK) like", value.toUpperCase(), "isimageok");
            return this;
        }

        public Criteria andIsmediaokLikeInsensitive(String value) {
            addCriterion("upper(isMediaOK) like", value.toUpperCase(), "ismediaok");
            return this;
        }

        public Criteria andIsguestpostokLikeInsensitive(String value) {
            addCriterion("upper(isGuestPostOK) like", value.toUpperCase(), "isguestpostok");
            return this;
        }

        public Criteria andAllowgroupsLikeInsensitive(String value) {
            addCriterion("upper(allowGroups) like", value.toUpperCase(), "allowgroups");
            return this;
        }

        public Criteria andAclLikeInsensitive(String value) {
            addCriterion("upper(acl) like", value.toUpperCase(), "acl");
            return this;
        }

        public Criteria andStateLikeInsensitive(String value) {
            addCriterion("upper(state) like", value.toUpperCase(), "state");
            return this;
        }
    }
}